package com.hl.card.credit.pub.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hl.card.credit.pub.dao.AbstractDao;
import com.hl.card.credit.pub.dao.PublicExpressOrderDao;
import com.hl.card.credit.pub.entity.PublicExpressOrder;
import com.hl.card.credit.pub.model.PublicExpressOrderModel;

//@Service
public class PublicExpressOrderService extends
		AbstractService<PublicExpressOrder, Integer> {

//	@Autowired
	private PublicExpressOrderDao<PublicExpressOrder, Integer> dao;

	@Override
	protected AbstractDao<PublicExpressOrder, Integer> getDao() {
		return dao;
	}

	/**
	 * 
	    * @Title: addPublicExpressOrderBatch
	    * @Description: TODO(批量写入数据)
	    * @param @param list    参数
	    * @return void    返回类型
	    * @throws
	 */
	public void addPublicExpressOrderBatch(List<PublicExpressOrder> list) {
		dao.addBatch(list);
	}
	
	/**
	 * 
	    * @Title: queryByCode
	    * @Description: TODO(根据快递单号查询快递详情)
	    * @param @param express_order_code
	    * @param @return    参数
	    * @return PublicExpressOrder    返回类型
	    * @throws
	 */
	public PublicExpressOrder queryByCode(String express_order_code){
		return dao.queryByCode(express_order_code);
	}

	public List<PublicExpressOrder> queryList(PublicExpressOrderModel publicExpressOrderModel) {
		// TODO Auto-generated method stub
		return dao.queryList(publicExpressOrderModel);
	}

}
